<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../common/tagInclude.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="${basePath}" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<LINK href="${basePath}styleAdmin/css/portalinabox.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="${basePath}styleAdmin/js/prototype-1.6.0.3.js"></script>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<title>页面头部链接--修改</title>
<script type="text/javascript">
	function checkForm(){
		var errors = "" ;
		if($F('linkValue') == "" ){
			errors += "链接地址不能为空!<br/>" ;
		}
		if(errors.length > 0){
			$('errors').innerHTML = "<font color='red' size='12'>" + errors  + "</font>" ;
			return ;
		}
		document.myform.submit();
	}
</script>
</head>
<body bottomMargin="0" leftMargin="0" rightMargin="0" topmargin="0">
<form name="myform" method="post" action="${basePath}/admin/pageLink/${act}">
<%@include file="../common/navigate.jsp" %>
<input type="hidden" id="id" name="id" value="${pageLink.id}"/>
<table width="90%" border="0" align="center" cellPadding="0" cellSpacing="0" style="margin-top:5px;">
 <tr><td align="center" colspan="2"><div id="errors"></div></td></tr>
 <tr>
	<td vAlign="top" align="center" height="157">
		<table width="100%" border="1" class="mainFunctionTable"  cellpadding="0" cellspacing="1">
        	<tr height="25" class="pLabel">
            	<td colspan="2" class="td_nwarpstyle" align="left">&nbsp;&nbsp;页面头部链接修改</td>
            </tr>
			<tr>
         		<td align="center" width="10%">链接名称</td>
         		<td align="left"><input type="text" name="linkName" id="linkName" value="${pageLink.linkName}" size="80" readonly="readonly"/></td>
    		</tr>
    		<tr>
         		<td align="center" width="10%">链接别名</td>
         		<td align="left"><input type="text" name="linkAlia" id="linkAlia" value="${pageLink.linkAlia}" size="80" readonly="readonly"/></td>
    		</tr>
            <tr>
         		<td align="center" width="10%">链接地址</td>
         		<td align="left"><input type="text" name="linkValue" id="linkValue" value="${pageLink.linkValue}" size="80" /></td>
    		</tr>
            <tr align="left">
              <td align="center" colspan="2">
	              <a href="javascript:checkForm();"><img src="${basePath}styleAdmin/images/button/save.gif" border=0></a>
	              &nbsp;&nbsp;
			      <a href="${basePath}admin/pageLink/list"><img src="${basePath}styleAdmin/images/button/exit.gif" border=0></a> 
              </td>
            </tr>
          </table>
      </td>
  </tr>
</table>
</form>
</body>
</html>